//
//  Evaluation.m
//  一键车讯
//
//  Created by 江玉元 on 14/10/31.
//  Copyright (c) 2014年 lanou.3g.com. All rights reserved.
//

#import "Evaluation.h"

@implementation Evaluation

- (void)dealloc
{
    [_number release];
    [_title release];
    [_image release];
    [_count release];
    [_date release];
    [_url release];
    [super dealloc];
}

- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.title = [dic objectForKey:@"title"];
        self.image = [dic objectForKey:@"image"];
        NSString *str = [[dic valueForKey:@"count"] description];
        self.count = [NSString stringWithFormat:@"%@评论", str];
        self.date = [dic objectForKey:@"pubDate"];
        self.url = [dic objectForKey:@"url"];
    }
    return self;
}
@end
